package com.dingyh.shopwebbackground.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dingyh.shopwebbackground.entity.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dingyuhan
 * @since 2023-02-13
 */
public interface UserService extends IService<User> {
    User selectById(String id,String role);
    User getLogin(Map<String,Object> map);
//    User changeInformation(String id,String nickname,String tel,String mail);
    User registerUer(Map<String,Object> map);
    int getByTel(String tel);
    User selectByTel(String tel);
    int getByMail(String mail);
    int getByDisabled(User user);
    List<User> getAllUser(Map<String,Object> map);
    boolean updBuy(User user);
    boolean updShop(User user, String saleLogo);
    boolean endBan(User user);
    Integer getUserCount();
    Integer getSaleCount();

}
